<template>
  <div class="Personnel">
    <BusinessCard class="BusinessCard" v-for="(obj ,index) in StaffTable" :key="index" :staffInfo="obj"></BusinessCard>
  </div>
</template>

<script>
import { getStaffTable } from '@/api/module/Follow'
import BusinessCard from '../components/BusinessCard'
export default {
  name: 'Personnel',
  data () {
    return {
      StaffTable: {}
    }
  },
  components: {
    BusinessCard
  },
  created () {
    this.getStaffTable()
  },
  methods: {
    async getStaffTable () {
      const { data } = await getStaffTable()
      this.StaffTable = data
      console.log('data: ', data)
    }
  }
}
</script>

<style scoped lang="less">
.Personnel{
   background-color: #f5f5f2;
    height: 100vh;
    .BusinessCard{
       margin-bottom: 12px;
    }
}
</style>
